{{ define "main" }}
<div class="container container-restricted">
  {{ partial "navigation.html" . }}

  {{ if gt (len .Pages) 0 }}
    {{ range (.Paginator 7).Pages }}
      {{ partial "blog/summary.html" . }}
    {{ end }}

    {{ partial "blog/pagination.html" . }}

    <div class="text-center">
      <a href="/archive/">&mdash; Blog Archive &mdash;</a>
    </div>
  {{ else }}
    {{ partial "blog/no_posts.html" . }}
  {{ end }}
</div>
{{ end }}